//index.js
var app = getApp();
Page({
  data: {
    userInfo: {},
    money:'0.00',
    score:'0',
    level:'刘一水火锅',
    number:20,
    bill:'../bill/bill?id=1',
    cart:'../cart/cart?id=1',
    focus:'../focus/focus?id=1',
    publish:'../publish/publish?id=1',
    store:'../store/store?id=1',
    adress:'../adress/adress?id=1',
    serve: [{ url: '../serve/serve', img: '../img/ow1.png', name: '服务' }, { url: '../mall/mall', img: '../img/ow2.png', name: '采购' }, { url: '../group/group', img: '../img/ow3.png', name: '社群' }, { url: '../sold/sold', img: '../img/ow4.png', name: '促销' }, { url: '../serve/serve', img: '../img/ow5.png', name: '粉丝' }]
 
  },
  //事件处理函数 
  road:function(){
    wx.navigateTo({
      url: '../set/set',
    })
  },
  paid:function(){
    wx.navigateTo({
      url: '../paid/paid',
    })
  },
  onLoad: function () {
    var that = this
    //调用应用实例的方法获取全局数据
    app.getUserInfo(function (userInfo) {
      //更新数据
      that.setData({
        userInfo: userInfo
      })
    })
  },
  onReady:function(){ 	 

  }
})
